<h1>Form</h1>
<?php if(!empty($this->postVars)): ?>
	<div style="border:1px solid green;padding:1em;margin-bottom:1em">
	<?php foreach($this->postVars AS $key=>$val): ?>
		<?php echo $key ?> => <?php echo $val ?><br />
	<?php endforeach; ?>
	</div>
<?php endif; ?>
<form action="/zf/sandbox/dojo/form/" method="post">
<b>Button</b><br />
<?php echo $this->button(
    'button',
    'Zeig mich!',
    array('iconClass' => 'myButtons')
); ?>
<br />
<b>Checkbox</b><br />
<?php echo $this->checkBox(
    'checkBox',
    'bar',
    array(),
    array(),
    array('checkedValue' => 'foo', 'unCheckedValue' => 'bar')
); ?>
<br />
<b>Date box</b><br />
<?php echo $this->dateTextBox(
    'dateTextBox',
    '2008-07-11',
    array('required' => true)
); ?>
<br />
<b>Currency box</b><br />
<?php echo $this->currencyTextBox(
    'currencyTextBox',
    '$25.00',
    array('currency' => 'USD'),
    array('maxlength' => 20)
); ?>
<br />
<b>Combo box</b><br />
<?php echo $this->comboBox(
    'comboBox',
    'bar',
    array(
        'autocomplete' => false,
    ),
    array(),
    array(
        'foo' => 'Foo',
        'bar' => 'Bar',
        'baz' => 'Baz',
    )
); ?>
<br />
<b>Radio</b><br />
<?php echo $this->radioButton(
    'radioButton',
    'bar',
    array(),
    array(),
    array(
        'foo' => 'Foo',
        'bar' => 'Bar',
        'baz' => 'Baz',
    )
);?>
<br />
<b>Textarea</b><br />
<?php echo $this->textarea(
    'textarea',
    'Start writing here...',
    array(),
    array('style' => 'width: 300px;')
);?>
<br />
<b>Textbox</b><br />
<?php echo $this->textBox(
    'textBox',
    'Irgendein Text',
    array(
        'trim'       => true,
        'propercase' => true,
        'maxLength'  => 20,
    ),
    array(
        'size' => 20,
    )
);?>
<br />
<b>Time textbox</b><br />
<?php echo $this->timeTextBox(
    'timeTextBox',
    '',
    array(
        'am.pm'            => true,
        'visibleIncrement' => 'T00:05:00', // 5-Minuten addieren
        'visibleRange'     => 'T02:00:00', // Zeigt 2 Stunden die hinzugef�gt werden k�nnen
    ),
    array(
        'size' => 20,
    )
);?>
<br />
<b>Validation Textbox</b><br />
<?php echo $this->validationTextBox(
    'validationTextBox',
    '',
    array(
        'required' => true,
        'regExp'   => '[\w]+',
        'invalidMessage' => 'Keine Leerzeichen oder nicht-Wort Zeichen erlaubt',
        'promptMessage'  => 'Nur ein einzelnes Wort, das aus alphanummerischen Zeichen und Unterstrichen besteht',
    ),
    array(
        'maxlength' => 20,
    )
);?>
<br />
<b>Number spinner</b><br />
<?php echo $this->numberSpinner(
    'numberspinner',
    5,
    array(
        'min'    => -10,
        'max'    => 10,
        'places' => 2,
    ),
    array(
        'maxlenth' => 3,
    )
); ?>
<br />
<b>Number Textbox</b><br />
<?php echo $this->numberTextBox(
    'numberTextBox',
    5,
    array(
        'places' => 4,
        'type'   => 'percent',
    ),
    array(
        'maxlength' => 20,
    )
);?>
<br />
<b>Password Textbox</b><br />
<?php echo $this->passwordTextBox(
    'passwordTextBox',
    '',
    array(
        'required' => true,
    ),
    array(
        'maxlength' => 20,
    )
);?>
<br />
<b>Horizontal slider</b><br />
<?php echo $this->horizontalSlider(
    'horizontalSlider',
    1,
    array(
        'minimum'             => -10,
        'maximum'             => 10,
        'discreteValues'      => 11,
        'intermediateChanges' => true,
        'showButtons'         => true,
        'topDecoration'       => array(
            'container' => 'topContainer',
            'dijit'     => 'HorizontalRuleLabels',
            'labels'    => array(
                ' ',
                '20%',
                '40%',
                '60%',
                '80%',
                ' ',
            ),
            'params' => array(
                'container' => array(
                    'style' => 'height:1.2em; font-size=75%;color:gray;',
                ),
                'labels' => array(
                    'style' => 'height:1em; font-size=75%;color:gray;',
                ),
            ),
        ),
        'bottomDecoration'    => array(
            'container' => 'bottomContainer',
            'labels'    => array(
                '0%',
                '50%',
                '100%',
            ),
            'params' => array(
                'container' => array(
                    'style' => 'height:1.2em; font-size=75%;color:gray;',
                ),
                'labels' => array(
                    'style' => 'height:1em; font-size=75%;color:gray;',
                ),
            ),
        ),
    )
);
?>

<?php echo $this->formSubmit('formSubmit', 'Submit') ?>
</form>